#ifndef GLOBAL_DATA_H
#define GLOBAL_DATA_H

#include <glm/vec3.hpp>
#include <vector>

class GlobalData
{
public:
    GlobalData()
    {
        RenderBackgroundColor = glm::vec3(0.22f, 0.33f, 0.33f);
        RobotLinkColors.resize(0);
        RunFlag = false;
        EnvLightColor = glm::vec3(1.0f, 1.0f, 1.0f);
        JointAngleDirty = true;
    }

    glm::vec3 RenderBackgroundColor{};
    std::vector<glm::vec3> RobotLinkColors{};
    bool RunFlag{};
    glm::vec3 EnvLightColor{};

    bool JointAngleDirty;
    std::vector<float> JointAngle;
    std::vector<float> JointAngleMin;
    std::vector<float> JointAngleMax;

    glm::mat4 ProjMatrix = {};
    glm::mat4 ViewMatrix = {};

    bool DrawSkybox = true;
    bool DrawAxis = true;
    bool DrawGround = true;
};

#endif //GLOBAL_DATA_H
